<template>
  <div class="paent-components">
    这是一个父组件
    <div>
      <span>这是来自于子组件的数据</span>
      <div>传递给子组件的信息为：<div>{{ msg }}</div></div>
      <Children v-model="msg" />
    </div>
  </div>
</template>

<script>
import { ref } from "vue";
import Children from "@/components/ChildComponent";

export default {
  components: {
    Children,
  },
  setup() {
    const msg = ref("1111");
    return {
      msg,
    };
  },
};
</script>

<style scoped>
.paent-components {
  width: 300px;
  height: 300px;
  background-color: bisque;
}
</style>